<template>
  <div id="basic_layout">
    <a-layout style="min-height: 100vh">
      <a-layout-header class="header">
        <NavBar />
      </a-layout-header>
      <a-layout-content class="content">
        <router-view />
      </a-layout-content>
      <a-layout-footer class="footer">
        <a href="https://www.baidu.com" target="_blank">编程导航</a>
      </a-layout-footer>
    </a-layout>
  </div>
</template>
<style scoped>
#basic_layout {
}

#basic_layout .header {
  box-sizing: border-box;
  padding-bottom: 10px;
  box-shadow: #eee 1px 1px 5px;
}

#basic_layout .content {
  box-sizing: border-box;
  flex: 1;
  padding: 10px 0;
}

#basic_layout .footer {
  display: flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  background-color: #efefef;
  position: sticky;
  bottom: 0;
  left: 0;
  right: 0;
  height: 40px;
  text-align: center;
}
</style>
<script setup lang="ts">
import NavBar from "@/components/NavBar.vue";
</script>
